package com.sat.goods.config;

import com.sat.common.entity.Result;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class BaseExceptionHandler {

    @ExceptionHandler(RuntimeException.class)
    public Result exceptionHandlerShow(Exception e){
        return Result.error(e.getMessage());
    }
}
